package io.github.dao;

import com.baomidou.mybatisplus.plugins.Page;
import io.github.entity.SysCallogsEntity;
import io.github.util.BaseDao;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: weil
 * @date: 2019/9/18 20:34
 * @version: 1.0
 * @description:
 */
public interface SysCalllogsDao extends BaseDao<SysCallogsEntity> {

    /**
     * 查询所有记录
     *
     * @return
     */
    List<SysCallogsEntity> queryAllLogs();

    /**
     * 根据areaid查询记录
     *
     * @param areaid
     * @return
     */
    SysCallogsEntity queryByAreaid(Integer areaid);

    Long getNumber(@Param("tempTime")String tempTime);

    List queryList(Page page,@Param("caller")String caller,@Param("callee") String callee,@Param("startTime")String startTime,@Param("endTime")String endTime);


    List queryList2(Page page,@Param("caller")String caller,@Param("callee") String callee,@Param("startTime")String startTime,@Param("endTime")String endTime);

}
